package cn.edu.scau.cmi.chenmiaopeng.compositePattern.transparentPattern;
import java.util.ArrayList;

public class Teams {
	//全局的集合
	private static ArrayList<String> teams = new ArrayList<String>();
	  public Teams() {
		  
	  }
	  public static ArrayList<String> getTeams(){
		  return teams;
	  }
	  public void addWholeOrg(String org) {
		  teams.add(org);
	  }
	  public static String getOrg(String orgName) {
		  for(int i=0;i<teams.size();i++) {
			  if(teams.get(i).equals(orgName)) {
				  return teams.get(i);
			  }
		  }
		  return null;
	  }
}
